﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineEducation.Data.Entities
{
    public class StudentProfile : EntityBase
    {
        [Key]
        [ForeignKey("User")]
        public string UserID { get; set; }

    
        [StringLength(500)]
        public string Address { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? BirthDate { get; set; }
        [StringLength(500)]
        public string Remark { get; set; }

        public ApplicationUser User { get; set; }

    }
    public class TeacherProfile : EntityBase
    {
        [Key]
        [ForeignKey("User")]
        public string UserID { get; set; }

  
        [StringLength(500)]
        public string Remark { get; set; }
        public ApplicationUser User { get; set; }
    }
}
